package edu.cueb.wmis.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import edu.cueb.wmis.pojo.Orderbillitem;
import edu.cueb.wmis.pojo.RespBean;
import edu.cueb.wmis.service.IOrderbillitemService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liuzizhuo
 * @since 2021-04-19
 */
@RestController
@RequestMapping("/orderbillitem")
public class OrderbillitemController {

    @Autowired
    private IOrderbillitemService orderbillitemService;
    @ApiOperation("添加预选物品")
    @PostMapping("/")
    public RespBean addOrderBillItem(@RequestBody Orderbillitem orderbillitem){
        if(orderbillitemService.addOrderBillItem(orderbillitem)){
            return RespBean.success("成功添加到预选单子");
        }else{
            return RespBean.error("失败!");
        }
    }


}
